//
//  WCS_WS_Node.h
//  VCS_WS_Client
//
//  Created by hu_danyuan on 19-08-21.
//   (c) Copyright 2019, hu_danyuan All Rights Reserved
//
//	描    述:  节点信息
//

#import <Foundation/Foundation.h>

@interface WCS_WS_GroupNode : NSObject <NSCopying, NSMutableCopying>

- (id)initWithDictionary:(NSDictionary *)dictionary;

@property (nonatomic, assign) NSInteger     total_devices;      // 该节点下设备总数(包含节点域) //
@property (nonatomic, assign) NSInteger     online_devices;     // 该节点下在线设备数(包含节点域) //

@end

@interface WCS_WS_DeviceNode : NSObject <NSCopying, NSMutableCopying>

- (id)initWithDictionary:(NSDictionary *)dictionary;

@property (nonatomic, assign) float     latitude;   // 经度
@property (nonatomic, assign) float     longitude;  // 纬度
@property (nonatomic, strong) NSString  *manufacturer;      // 设备制造商 //
@property (nonatomic, strong) NSString  *model;      // 设备型号 //
@property (nonatomic, strong) NSString  *version;    // 设备版本号 //

@end

@interface WCS_WS_Node : NSObject <NSCopying, NSMutableCopying>

- (id)initWithDictionary:(NSDictionary *)dictionary;

@property (nonatomic, strong) NSString      *uid;       // 表示符号，同一个路径下唯一，全局不一定唯一 //
@property (nonatomic, strong) NSString      *name;      // 节点名称 //
@property (nonatomic, strong) NSString      *type;      // 节点类型：group,device/IPC,device/EmergencyAlarmer等 //
@property (nonatomic, strong) NSString      *status;    // 节点状态 //

@property (nonatomic, strong) id     detail;    // 详细信息，如果type含有group前缀则类型为WCS_WS_GroupNode，含有device前缀则类型为WCS_WS_DeviceNode
//@property (nonatomic, strong) WCS_WS_Node   *subnode;

@end


